package com.lcj.aoch.rule;
import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import com.lcj.aoch.rule.config.ConstantConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ServletComponentScan
@EnableConfigurationProperties(ConstantConfiguration.class)
@MapperScan({"com.lcj.aoch.rule.db.dao"})
@ComponentScan({"com.lcj.*"})
@EnableDistributedTransaction
public class AochRuleApplication {
  public static void main(String[] a) {
    SpringApplication.run(AochRuleApplication.class, a);
  }
}
